package com.zbkj.common.response.traceability;

import com.zbkj.common.model.traceability.Batches;
import com.zbkj.common.model.traceability.TraceabilityLogs;
import com.zbkj.common.model.traceability.TraceableItems;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 溯源详情响应对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: xiaolic
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TraceabilityDetailResponse对象", description="溯源详情响应对象")
public class TraceabilityDetailResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "批次信息")
    private Batches batchInfo;

    @ApiModelProperty(value = "可追溯项/二维码信息")
    private TraceableItems itemInfo;
    
    @ApiModelProperty(value = "商品名称")
    private String productName;
    
    @ApiModelProperty(value = "商家名称")
    private String merchantName;

    @ApiModelProperty(value = "追溯日志列表")
    private List<TraceabilityLogs> logs;
    
    @ApiModelProperty(value = "查询次数")
    private Integer scanCount;
}
